package cn.tedu.es;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "tb_hotel")
public class Hotel {
    @Id
    private Long id;
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String name;
    private Integer price;
    private Integer score;
    private String brand;
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String address;
    private String latitude;
    private String longitude;
}